package org.learn.controller;

import org.learn.bean.JdbcBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JdbcController {

    @Autowired
    JdbcBean jdbcBean;
    @RequestMapping("/")
    String home() {
        String str = jdbcBean.getName()+"_"+jdbcBean.getPassword()+"_"+jdbcBean.getAddress();
        return str;
    }
}
